From 8cf96a2728affa53386f320b897af3b566bed890 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 4 Dec 2009 06:51:53 +0000 Subject: [PATCH] libxenlight: Get rid of the dependency on the LIBCONFIG_SOURCE directory. Signed-off-by: Jean Guyader --- tools/libxl/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile index 20cfa08938..e0e257d050 100644 --- a/tools/libxl/Makefile +++ b/tools/libxl/Makefile @@ -46,13 +46,11 @@ libxenlight.a: $(LIBXL_OBJS) $(LIBCONFIG_SOURCE).tar.gz: $(WGET) $(LIBCONFIG_URL)/$@ -$(LIBCONFIG_SOURCE): $(LIBCONFIG_SOURCE).tar.gz - tar xzf $< - -$(LIBCONFIG_OUTPUT)/libconfig.so: $(LIBCONFIG_SOURCE) +$(LIBCONFIG_OUTPUT)/libconfig.so: $(LIBCONFIG_SOURCE).tar.gz + [ ! -d "$(LIBCONFIG_SOURCE)" ] && tar xzf $< cd $(LIBCONFIG_SOURCE) && ./configure --prefix=$(DESTDIR)$(PREFIX) && $(MAKE) -xl.o: $(LIBCONFIG_SOURCE) +xl.o: $(LIBCONFIG_OUTPUT)/libconfig.so xl.c $(CC) $(CFLAGS) -I$(LIBCONFIG_SOURCE) -c xl.c $(CLIENTS): xl.o libxenlight.so $(LIBCONFIG_OUTPUT)/libconfig.so -- 2.30.2